/**
 * 
 */
package com.cosmetics.groupware.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * description : DAO 인터페이스 일반
 * @author     : dreams
 * @Date       : 2011. 7. 23.
 * @Version    :   
 * <pre>
 * com.cosmetics.groupware.util.dao |_ CommonDAO.java
 * </pre>
 */
public interface CommonDAO {
	public void createData(String id, Object value) throws SQLException;
	
	public int updateData(String id, Object value) throws SQLException;
	public int updateData(String id, Map<String, Object> map) throws SQLException;
	
	public int deleteData(String id, Object value) throws SQLException;
	public int deleteData(String id, Map<String, Object> map) throws SQLException;
	public int deleteAllData(String id) throws SQLException;
	
	public Object getReadData(String id);
	public Object getReadData(String id, Object value);
	public Object getReadData(String id, Map<String, Object> map);
	
	public int getIntValue(String id);
	public int getIntValue(String id, Object value);
	public int getIntValue(String id, Map<String, Object> map);
	
	public List<Object> getListData(String id);
	public List<Object> getListData(String id, Object value);
	public List<Object> getListData(String id, Map<String, Object> map);
	
}
